package cn.sfrog.project.biz.admin.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;


@Data
@ApiModel(description = "客服代下单表单VO")
public class BizHelpCustomerOrderFormVO {


    @ApiModelProperty("用户id")
    @NotNull(message = "用户id不能为空")
    private Long userId;

    @ApiModelProperty("接单人id")
    @NotNull(message = "接单人id不能为空")
    private Long acceptUserId;


    @ApiModelProperty("预约时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @NotNull(message = "预约时间不能为空")
    private Date appointmentDate;

    @ApiModelProperty("预约医院id")
    @NotNull(message = "预约医院不能为空")
    private Long hospitalId;

    @ApiModelProperty("联系人手机号")
    @NotBlank(message = "联系人手机号不能为空")
    private String contactPhone;

    @ApiModelProperty("联系人姓名")
    @NotBlank(message = "联系人姓名不能为空")
    private String contactName;

    @ApiModelProperty("特殊需求")
    private String specialNeeds;


    @ApiModelProperty("购买的类型【1=服务 2=套餐】")
    @NotBlank(message = "购买类型不能为空")
    private String buyType;

    @ApiModelProperty("商品id ")
    @NotNull(message = "服务或套餐不能为空")
    private Long productId;

    @ApiModelProperty("购买数量")
    @NotNull(message = "购买数量不能为空")
    private Integer num;

    @ApiModelProperty("订单金额")
    @NotNull(message = "订单金额不能为空")
    private BigDecimal amount;



}
